package org.example.dzone;

import org.example.model.DZoneDoc;

public class DZoneDBDao {
    private static DZoneDBDao service = new DZoneDBDao();
    public static DZoneDBDao get(){
        return service;
    }

    DZoneDoc[] getAllDocFromDB(){
        return produceDocs();
    }

    private DZoneDoc[] produceDocs() {
        DZoneDoc[] array = {
                DZoneDoc.getInstance("Java Microservice", "Refcardz"),
                DZoneDoc.getInstance("RX Java", "Article"),
                DZoneDoc.getInstance("IOT in Action", "Refcardz"),
                DZoneDoc.getInstance("Java8 in Action", "Refcardz"),
        };
        return array;

    }
}
